<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>测试vue3的依赖收集</title>
  <script src="../node_modules/vue/dist/vue.global.js"></script>
</head>
<body>
  <div id="app">{{name}}</div>
  <script>
    const {createApp} = Vue
    createApp({
      data() {
        return {
          name: 'lihh'
        }
      },
      mounted() {
        setTimeout(() => {
          this.name = 'lihh1'
        }, 2000);
      }
    }).mount('#app')
  </script>
</body>
</html>